{include file="public/same_header" /}

<!-- 右侧的开始 -->
<div class="right_bar jianchajilu jueseguanli ">
    {include file="public/go_back" /}
    <div class="jcjl_detail">
        <div class="top_dec">
            <div>
                <span class="theme">{$breadcrumb}</span>
                <div class="search_box">
                    <em><a href="{:url('authority/addmenu',array('upid'=>0,'upname'=>'顶级菜单'))}" class="btn-permission" data-url="authority/addmenu">添加菜单</a></em>
                </div>
            </div>
        </div>
        <div class="data">
            <!-- 下面的   列表 开始  -->
            <div class="liebiao">

                <div class="liebiao_dec">
                    <div class="liebiao_top">
                        <strong class="first">菜单名称</strong>
                        <!--<strong class="second">管理等级</strong>-->
                        <strong class="fifth">操作</strong>
                    </div>
                    <ul>

                        {foreach name="list" item="v"}
                        <li>
										<span class="first">
											<em> {$v['_name']}</em>
										</span>
										<span class="">
                                             <a  class="btn-permission" data-url="authority/addmenu" href="{:url('authority/addmenu',array('upid'=>$v['id'],'upname'=>$v['menuname']))}">添加下一级</a>
											 <a  class="btn-permission" data-url="authority/editmenu"  href="{:url('authority/editmenu',array('id'=>$v['id']))}">编辑</a>

                                  <a  class="a-post btn-permission" data-url="authority/deleterole" post-msg="你确定要删除吗" post-url="{:url('authority/deleterole',array('id'=>$v['id']))}">
                                                     <input type="button" value="删除">
                                                 </a>
										</span>
                        </li>
                        {/foreach}




                    </ul>
                </div>
            </div>
            <!-- 列表的结束 -->


        </div>
    </div>
</div>
<!-- 右侧的结束 -->
</div>
</div>
{include file="public/footer" /}